#include "edit_widget.hpp"
EditWidget::EditWidget(QWidget *parent)
    : QWidget(parent)
    , mainLayout(nullptr)
    , titleLabel(nullptr)
    , configLabel(nullptr)
{
    setupUI();
}
EditWidget::~EditWidget()
{
}
void EditWidget::setupUI()
{
    mainLayout = new QVBoxLayout(this);
    titleLabel = new QLabel("Edit Control Tab", this);
    titleLabel->setStyleSheet("font-size: 18px; font-weight: bold; color: purple;");
    titleLabel->setAlignment(Qt::AlignCenter);
    configLabel = new QLabel(QString("Config Info:\n"
        "App Name: %1\n"
        "Default Font: %2\n"
        "Default Font Size: %3\n"
        "Font Size Range: %4 - %5")
        .arg(Config::APP_NAME)
        .arg(Config::EDIT_DEFAULT_FONT)
        .arg(Config::EDIT_DEFAULT_FONT_SIZE)
        .arg(Config::EDIT_MIN_FONT_SIZE)
        .arg(Config::EDIT_MAX_FONT_SIZE), this);
    configLabel->setStyleSheet("background-color: #f0f0f0; padding: 10px; border: 1px solid #ccc;");
    mainLayout->addWidget(titleLabel);
    mainLayout->addWidget(configLabel);
    mainLayout->addStretch();
}